import { h, fragment } from '@knno/dom/jsx';
import { Roller } from '@knno/ui/jsx/roller';
import '@knno/ui/sound';

export function ShowRoller() {
	const data = Array(50)
		.fill(0)
		.map((v, i) => 2000 + i + '');
	return (
		<>
			<h2>滚动选择</h2>
			<Roller
				options={data}
				onpick={(e) => {
					console.log(e.detail);
				}}
			/>
		</>
	);
}
